---
title: Load DCBS cost-charge factors
summary: Loads DCBS cost-to-charge factors for a provider location via a direct-query self-loading list.
status: draft
owner: SAIF Doc Gen
last_reviewed: 2026-08-21
library: SAIF.Business.View.Provider
reference_type: embedded
operation_id: OP-10
trigger: clsProviderLocation.DCBSCostCharges navigation
---

# Load DCBS cost-charge factors

Loads all DCBS cost-to-charge factors for a provider location using the direct-query, self-loading list pattern (bypassing the criteria/portal pipeline).

| Field | Value |
| --- | --- |
| **Operation ID** | OP-10 |
| **Trigger** | `clsProviderLocation.DCBSCostCharges` navigation |
| **Inputs** | `IDataPortalInfo`, provider-location ID |
| **Outputs** | `clsDCBSCostChargeList` |
| **Primary components** | `clsDCBSCostChargeList..ctor(dpi, providerLocationID)` |
| **Entry point** | `SAIF.Business.View.Provider/clsDCBSCostCharge.vb:90` |

## Steps

1. Build SQL over [PROVIDER_DCBS_COST_CHARGE](../database-tables.md#provider_dcbs_cost_charge) with a `StringBuilder`.
2. Bind `:ProviderLocationID` and execute via `SqlHelper.ResultSetQuery` ([SQL-DCBS-01](../sql/SQL-DCBS-01-dcbs-cost-charges.md)).
3. Materialise each row into a `clsDCBSCostCharge` and add it to the list.
4. Each factor's effective window is evaluated with `IsInEffect(date)` / `IsActive` / `IsExpired`, applying the uniform date-window rule [BR-DATE-001](../business-rules.md#br-date-001-dated-records-are-in-effect-within-their-date-window).

## Process flow

The following diagram visualizes this operation's control flow.

```mermaid
flowchart TD
	Start([Caller request]) --> S1[Build SQL via StringBuilder]
	S1 --> S2[Bind ProviderLocationID]
	S2 --> S3["Execute via<br>SqlHelper.ResultSetQuery"]
	S3 --> S4["Materialize each row into<br>clsDCBSCostCharge"]
	S4 --> S5{"Effective-date check<br>requested?"}
	S5 -->|Yes| S6["IsInEffect / IsActive /<br>IsExpired"]
	S5 -->|No| EndOk(["clsDCBSCostChargeList<br>returned"])
	S6 --> EndOk
```

## Failure and edge-case behavior

- No matching rows: an empty `clsDCBSCostChargeList` is returned.
- This is a direct-query construction path (no `IBusinessCriteria`/portal involvement), so no BOF `IsValid` rules apply to the list itself.

## Related documentation
- [Operations and processes](../operations-processes.md)
- [Business rules](../business-rules.md)
- [SQL catalog](../sql/index.md)
- [Database tables](../database-tables.md)

## Sources
- `SAIF.Business.View.Provider/clsDCBSCostCharge.vb`
